<!--
 * @Description: 
 * @Author: 赵华宇
 * @Date: 2025-04-21 17:27:00
 * @LastEditors: 赵华宇
 * @LastEditTime: 2025-04-21 17:28:06
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>子代选择器</title>
    <style>
        div>span{
            color:red;
        }
    </style>
</head>
<body>
    <div>
        <span>儿子span</span>
        <p>
            <span>孙子span</span>
        </p>
    </div>
</body>
</html>